package com.xjgc.util;

import org.apache.commons.lang3.StringUtils;

/**
 * 字符串移出左侧0
 *
 * @author: 小逗号
 * @date: 2023-9-7
 * @description:
 * @since:
 */
public class StrLeft0RemoveUtil {
    public static String left0Trim(String str) {
        if (StringUtils.isEmpty(str)) {
            return str;
        }
        if (str.startsWith("0")) {
            str = str.substring(1);
            return left0Trim(str);
        }
        return str;
    }
}
